package com.sense.kukoo.common.repo.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import java.lang.Exception

data class ResultBean<T>(
    var code: Int = -1,
    var msg: String = "",
    var data: T? = null,
    var success: Boolean = false,
    var exception: Exception? = null
){

    companion object {
        const val CODE_SUCCESS: Int = 200
    }

    fun isSuccess():Boolean = (true == success)
}